from pydantic import BaseModel

class RoomInfo(BaseModel):
    rid:int=None
    roomName:str
    idCard:str
    personName:str
    phone:str
    waterNumber:str
    electricNumber:str
    moveInDate:str
    modifyDate:str=None

    class Config:
        orm_mode=True

class User(BaseModel):
    user_id:int
    phone:str
    nickName:str
    password:str

    class Config:
        orm_mode=True